package com.questions.helper.model;

public class Answer {
    public static final int CORRECT_YES = 1;
    public static final int CORRECT_NO = 0;
    long id;
    String titleText;
    String answerSort;

    int correct = CORRECT_NO;
    int answerOrder;
    long questionsId;


    public long getQuestionsId() {
        return questionsId;
    }

    public void setQuestionsId(long questionsId) {
        this.questionsId = questionsId;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getTitleText() {
        if("对".equals(titleText)){
            return "正确";
        }else if ("错".equals(titleText)){
            return "错误";
        }
        return titleText;
    }

    public void setTitleText(String titleText) {
        this.titleText = titleText;
    }

    public String getAnswerSort() {
        return answerSort;
    }

    public void setAnswerSort(String answerSort) {
        this.answerSort = answerSort;
    }

    public int getAnswerOrder() {
        return answerOrder;
    }

    public void setAnswerOrder(int answerOrder) {
        this.answerOrder = answerOrder;
    }

    public int getCorrect() {
        return correct;
    }

    public void setCorrect(int correct) {
        this.correct = correct;
    }
}
